
#include <stdio.h>
#include <string.h> 
#include "hwinfo.h"

int main(int argc, char * argv[])  
{  
	char resultStr[INFO_BUFFER_SIZE] = {0};
	if(get_cpu_id(resultStr))
	{  
		printf("cpu id: [%s]\n", resultStr);  
	}  
	else  
	{  
		printf("can not get cpu id\n");  
	}  
	memset(resultStr, 0, INFO_BUFFER_SIZE);
    if (get_mac_address(resultStr))  
    {  
        printf("mac address: [%s]\n", resultStr);  
    }  
    else  
    {  
        printf("can not get mac address\n");  
    }  
	/*
	memset(resultStr, 0, 255);
    if (get_disk_serial_number(resultStr))  
    {  
        printf("disk serial number: [%s]\n", resultStr);  
    }  
    else  
    {  
        printf("can not get disk serial number\n");  
    } 
	
	memset(resultStr, 0, 255);
    if (get_board_serial_number(resultStr))  
    {  
        printf("board serial number: [%s]\n", resultStr);  
    }  
    else  
    {  
        printf("can not get board serial number\n");  
    }  
	*/
    return(0);  
} 